import { http } from "@/utils/http";

export const getStudentListApi = data => {
  return http.get("/student/list", { params: data });
};

export const addStudentApi = (data: object) => {
  return http.post("/student/add", { data });
};

export const updateStudentApi = (data: object) => {
  return http.post("/student/update", { data });
};

export const delStudentApi = (data: object) => {
  return http.post("/student/delete", { data });
};

export const batchStudentApi = (data: object) => {
  return http.post("/student/batch_add", { data });
};

export const batchExcelStudentApi = (data: object) => {
  return http.post("/student/batch_excel_add", { data });
};
